{template index/header}
    <div id="ActivityBox" class="container activity">
        {loop $lists as $k=>$v}
            <div class="floor fix">
                <div class="showDetail fix">
                    <img src="{$v['thumb']}" alt="" class="ImgLI floorTitleImg defaultImg">
                    <div class="floorRright">
                        <h2>{$v['title']}</h2> 
                        <p>{$v['desc']}</p> 
                        <a href="javascript:;">查看详情<i></i></a>
                    </div>
                </div>
                <div class="contents">
                    {if $v['isPic'] == 0}
                        {html_entity_decode($v['contents'])}
                    {else}
                        <img src="{$v['contents']}" alt="">
                    {/if}                    
                </div>
            </div> 
            <div class="floorLine"></div>
        {/loop}
    </div>
    {template index/footer}
<script>
$(function(){
    $(".contents").hide();
    $(".floorRright a").on('click',function(){
        $(this).parent().parent().parent().siblings('.floor').find('.contents').hide();
        $(this).parent().parent().parent().siblings('.floor').find('.floorRright a').attr('rotateBtn',false).find('i').css('transform','rotate(0deg)');
        $(this).parent().parent().parent().find('.contents').toggle();
        if(!this.rotateBtn){
            $(this).find('i').css('transform','rotate(180deg)');
            this.rotateBtn = true;
        }else{
            $(this).find('i').css('transform','rotate(0deg)');
            this.rotateBtn = false;
        }
    })
});
</script>